package com.panshi.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 后台管理员表
 * </p>
 *
 * @author xhlMr
 * @since 2020-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="SysAdminT对象", description="后台管理员表")
public class SysAdminT implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;

    @ApiModelProperty(value = "姓名")
    private String adminName;

    @ApiModelProperty(value = "性别 F女; M男")
    private String adminSex;

    @ApiModelProperty(value = "工号")
    private Long adminNumber;

    @ApiModelProperty(value = "密码")
    private String adminPassword;

    @ApiModelProperty(value = "手机号")
    private String adminTelephone;

    @ApiModelProperty(value = "邮箱")
    private String adminEmail;

    @ApiModelProperty(value = "头像路径")
    private String imgPath;

    @ApiModelProperty(value = "个人介绍")
    private String adminIntroduce;

    @ApiModelProperty(value = "状态: 0冻结, 1正常, 2删除")
    private String adminStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "最后登录时间")
    private Date lastLoginTime;

    @ApiModelProperty(value = "用户角色")
    private SysRoleT sysRoleT;
}
